import {NgModule} from '@angular/core';
import {RouterModule, Routes} from '@angular/router';
import {UserEditComponent} from './edit/user-edit.component';
import {UserListComponent} from './list/user-list.component';
import {UserRoleComponent} from "./role/user-role.component";
import {OrganizationModule} from "../organization/organization.module";
import {GnCrudModule} from "geminis-ng";
import {MatCheckboxModule} from "@angular/material";

const routes: Routes = [
  {path: '', component: UserListComponent}
];

@NgModule({
  declarations: [
    UserListComponent,
    UserEditComponent,
    UserRoleComponent
  ],
  imports: [
    RouterModule.forChild(routes),

    MatCheckboxModule,

    GnCrudModule,
    OrganizationModule
  ],
  exports: [
    UserListComponent,
    UserEditComponent,
    UserRoleComponent
  ],
  entryComponents: [
    UserEditComponent,
    UserRoleComponent
  ]
})

export class UserModule {
}

export {UserListComponent} from './list/user-list.component';
